<?php
$dirpath = explode('\\',dirname(__FILE__));
array_pop($dirpath); array_pop($dirpath);
$dirpath1 = implode('\\',$dirpath).'\\';
$dirpath2 = implode('/',$dirpath).'/';

$dirpathid = explode('\\',dirname(__FILE__));

$userBaseId = $dirpathid[count($dirpathid)-1];
if(!file_exists($dirpath2."www/$userBaseId/common.inc.php"))
{
    header("Location:install/index.php");
    exit();
}

require_once ($dirpath1 . "/base/include/common.inc_".$userBaseId.".php");
require_once DEDEINC."/arc.partview.class.php";
$GLOBALS['_arclistEnv'] = 'index';
$row = $dsql->GetOne("Select * From `#@__homepageset`");
$row['templet'] = MfTemplet($row['templet']);
$pv = new PartView();
$pv->Lang = $cfg_df_lang;
//用户变化
$pv->SetTemplet($dirpath2. $cfg_templets_dir . "/" . $row['templet']);
$pv->Display();
?>